-
Notifications
You must be signed in to change notification settings - Fork 677
SMQ-3108 - Add support for public and private metadata for users and clients #3155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #3155 +/- ##
===========================================
+ Coverage 53.21% 79.17% +25.96%
===========================================
Files 312 109 -203
Lines 32706 13203 -19503
===========================================
- Hits 17405 10454 -6951
+ Misses 14234 2132 -12102
+ Partials 1067 617 -450 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
9fefd43 to
72c75d5
Compare
72c75d5 to
bd9dfdd
Compare
3a95df7 to
37a317c
Compare
37a317c to
e8269da
Compare
dborovcanin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To keep it backward compatible and not break API, let's consider our Metadata private, and just add public one. I.e. we have metadata and publicMetadata fields. Private ones should not be visible even to superadmin, probably, but for now - let's just add public meta.
d31dca6 to
7253696
Compare
|
@felixgateru Please resolve conflicts. |
Signed-off-by: Felix Gateru <[email protected]>
Signed-off-by: Felix Gateru <[email protected]>
Signed-off-by: Felix Gateru <[email protected]>
Signed-off-by: Felix Gateru <[email protected]>
Signed-off-by: Felix Gateru <[email protected]>
Signed-off-by: Felix Gateru <[email protected]>
Signed-off-by: Felix Gateru <[email protected]>
Signed-off-by: Felix Gateru <[email protected]>
7253696 to
7c51ae9
Compare
| if uce.PublicMetadata != nil { | ||
| val["public_metadata"] = uce.PublicMetadata |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why we are not emitting metadata ?
Signed-off-by: Felix Gateru <[email protected]>
| meta, ok := data["public_metadata"].(map[string]any) | ||
| if ok { | ||
| c.Metadata = meta | ||
| c.PublicMetadata = meta | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing metadata in decoding
Signed-off-by: Felix Gateru <[email protected]>
What type of PR is this?
This is a feature as it adds support for private and public metadata for Users and Clients
What does this do?
This pr:
Which issue(s) does this PR fix/relate to?
Have you included tests for your changes?
Yes, tests have been updated.
Did you document any new/modified feature?
Yes, api docs have been updated for the changes
Notes